package com.atguigu.edu.mapper;

import com.atguigu.edu.bean.PaperExamStats;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PaperExaminStatsMapper {
    @Select("select paper_title paper_title,sum(test_exam_people) testExamPeople,avg(test_avg_score) testAvgScore, " +
            " avg(test_avg_time) testAvgTime " +
            "  from dws_exam_paper_exam_statistics_window partition par#{date}  group by paper_title")
    List<PaperExamStats> selectPaperExam( Integer date );
}
